
#ifndef __GR5513_OTA_M_H__
#define __GR5513_OTA_M_H__


#include <stdint.h>
#include <stdbool.h>
#include <bluetooth/bluetooth.h>

#define  ota_nor     0x00
#define  ota_fast    0x01
#define  http_dev_mac_config "data/BLE.conf"
#define  http_ble_fail       "data/ble_fail.log"

#define ws_sys_log( fmt,  arg  ... ) \
	do{printf("ws_sys_log: " fmt ,  ##arg );  }while(0);

void app_dfu_rev_cmd_cb(void);
void ble_socket_send_data(uint8_t *data, uint16_t len, uint16_t Handle);
int  ble_socket_connect(bdaddr_t *BDADDR_REBLE,uint16_t timeout);
void app_dfu_ota_end(bool status);
void printids(const char *s);

#endif


